/**
 * King.java
 * Auti i class ine ipethini gia ta Pawns ( Stratiotakia ). Ohi gia tous kanones pou ta diakrini.
 */

package chess;

/**
 * 
 * @author Stordopoulos Dimitris <stordop@csd.uoc.gr>
 */
public class King extends Piece{
    
    public King(){ super(); }
    
    /**
     * 
     * @param clr To hroma gia to King, vasi tou opiou tha apofasisti to icon. 
     * @param mov To an to King tha ine movable apo to mouse.
     */
    public King(char clr, boolean mov){
        this();
        if( clr=='w'){ setPieceImage("Wking.png"); }
        else{ setPieceImage("Bking.png"); } //black pawn !!!
        setMovability(mov);
        setPieceColor(clr);
    }
}